#pragma once
#include "precompiled.h"

enum DeathClass{SCENERY_MONKEY,PLAYER};

class DeathComponent
{
public:
	DeathComponent(void);
	~DeathComponent(void);

	void Initialize( int death_duration );
	void orderDeath();
	void doDeath(  );

	bool doingDeath();
	bool didDeath();

	void Update( GLdouble time );

private:
	DeathClass dclass;

	bool beganDeath, finishedDeath, orderedDeath;

	GLdouble death_length, timestamp_deathstart, last_timestamp;
};

